package com.tengfei.staticProxy;

/**
 * @Description:
 * @author: ten_fei
 * @date: 2021-07-09 11:24
 */
public class Proxy implements Rent {
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        host.rent();
        seeHouse();
        getFare();
    }

    public void seeHouse(){
        System.out.println("中介带你看房");
    }
    public void getFare(){
        System.out.println("收中介费");
    }
}
